﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dictionary_add.aspx.cs" Inherits="DataBaseManage_DictionaryAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>填写字典信息</title>
    <style type="text/css">
body {
	background-color:#333333;
	font-size: 12px;
	color: #333333;
	margin:0px;
	line-height:20px;
}
    </style>
    <script language="javascript" type="text/javascript">
    function CheckData()
    {
     var val=document.getElementById("txtCnname").value;
     if(val.replace(/(^\s*)|(\s*$)/g,"").length<=0){
     alert("中文名称不能为空！");
     return false;
     }
    }
    </script>
    </head>
<body>
<table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="414" align="left" valign="top" class="rightbg"><table width="100%" height="489" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;
                                        padding-top: 3px;">
                                        <%--<a href="dictionary_list.aspx?layerid=<%=Layerid %>">字典管理</a>&nbsp;&nbsp;<img src='../images/subnav_dot.gif'
                                            width='9' height='9' />&nbsp;&nbsp;填写字典信息&nbsp;&nbsp;</td>--%>
                                            <asp:Label ID="headers" runat="server" />
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="30"></td>
      </tr>
      <tr>
        <td height="410" align="left" valign="top" style="padding-left:10px;">
<table width="90%" height="183" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">
    <form id="form1" runat="server">
 <input type="hidden" name="upid" value="0"/>
 <input type="hidden" name="availabilityflag" value=""/>
          <tr>
            <td width="100%" height="181" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr bgcolor="#2583BC">
                <th align="left">　　请填写字典信息</th>
                </tr>
            </table>
              <table width="100%" height="117" border="0">
                <tr>
                  <td  height="20" colspan="3"></td>
                </tr>
                 <tr>
                  <td width="30%" height="33" align="right"><font color="#ff0000">*</font>中文名称：</td>
                  <td width="3%">&nbsp;</td>
                  <td width="67%">
                      <asp:TextBox ID="txtCnname" runat="server"></asp:TextBox>
                        </td>
                </tr>                 
                
                <tr>
                  <td width="30%" height="33" align="right">英文名称：</font></td>
                  <td width="3%">&nbsp;</td>
                  <td width="67%">
                      <asp:TextBox ID="txtEnname" runat="server"></asp:TextBox>
                      </td>
                </tr>                  
                 
                <tr>
                <td width="30%" height="33" align="right">备注：</td>
                  <td>&nbsp;</td>
                  <td>
                      <asp:TextBox ID="txtRemark" runat="server"></asp:TextBox>
                                                </td>
                </tr>    
                <tr>
                  <td height="33" align="right">是否有效：&nbsp;</td>
                  <td>&nbsp</td>
                  <td>
                      <asp:CheckBox ID="chbAvailabilityflag" runat="server" Checked="True" />
                                                </td>
                </tr>        
                  <tr>
                  <td height="33" align="right">排序号：</td>
                                                <td>&nbsp;</td>
                  <td>
                      <asp:TextBox ID="txtOrdernum" runat="server"></asp:TextBox>
                                                </td>
                </tr>    
                   <tr>
                  <td height="33" align="right">配用1：</td>
                      <td>&nbsp;</td>
                  <td>
                      <asp:TextBox ID="txtStandby" runat="server"></asp:TextBox>
                                                </td>
                </tr>   
                   <tr>
                  <td height="33" align="right">配用2：</td>
                  <td>&nbsp;</td>
                  <td>
                      <asp:TextBox ID="txtStandby2" runat="server"></asp:TextBox>
                                                </td>
                </tr>                                                                                       
                <tr>
                  <td height="33" align="right"></td>
                  <td>&nbsp;</td>
                  <td height="35" align="left">
                      <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" Text="提交"  OnClientClick="return CheckData();"/>
                      <input type="reset" value="重置" />
                      <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="返回" />
                    </td>
                </tr>
              </table>
              
              </td>
          </tr>
            </form>
        </table>        
        </td>
          </tr>
        </table>    
           </td>
      </tr>
    </table>
    </td>
  </tr>
</table>

</body>
</html>
